/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 15px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 12px;
    }

    .modal-body {
        max-height: 70vh;
    }

    .folder-children {
        padding-left: 20px;
    }

    .folder-tree-item {
        padding: 10px 8px;
    }

    .modal-btn {
        padding: 10px 12px;
        width: calc(50% - 10px);
        margin: 5px;
    }

    .modal-footer {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}
.modal-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-body {
    max-height: 400px;
    overflow-y: auto;
}

.modal-footer {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* 树状目录样式 */
.folder-tree {
    margin: 0;
    padding: 0;
    list-style: none;
}

.folder-tree-item {
    padding: 8px 12px;
    cursor: pointer;
    display: block;
    transition: background-color 0.2s;
    position: relative;
}

.folder-tree-item:hover {
    background-color: #f5f5f5;
}

.folder-tree-item.selected {
    background-color: #e6f7ff;
}

.folder-icon {
    display: inline-block;
    margin-right: 8px;
    color: #1890ff;
    vertical-align: middle;
}

.folder-name {
    display: inline-block;
    vertical-align: middle;
}

.expand-icon {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.2s;
    vertical-align: middle;
}

.expanded > .expand-icon {
    transform: rotate(90deg);
}

.folder-tree-item {
    position: relative;
}

.folder-children {
    position: relative;
}

.folder-children::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e8e8e8;
}

.folder-children .folder-tree-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    height: 1px;
    background-color: #e8e8e8;
}

.folder-children {
    margin-top: 0;
    padding-left: 40px;
    display: none;
    position: relative;
}

.expanded > .folder-children {
    display: block;
}

/* 按钮样式 */
.modal-btn {
    padding: 8px 16px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.modal-btn-primary {
    background-color: #1890ff;
    color: white;
}

.modal-btn-primary:hover {
    background-color: #40a9ff;
}

.modal-btn-default {
    background-color: #f5f5f5;
    color: #333;
}

.modal-btn-default:hover {
    background-color: #e8e8e8;
}